<?php
    echo $form->create('Homework', array('enctype' => 'multipart/form-data'));
    echo $form->file('upload_file', array('label' => '提交作业文件'));
    echo $form->input('self_comment', array('label' => '自我评价'));
    echo $form->input('task_id', array('label' => '选择任务',
        'options' => $ops));
    echo $form->end('确认并提交作业');
?>
